﻿using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using WebIOCService;

namespace MyWebTest
{
    public class TestClases<T, R>
        where T : class
        where R : struct
    {

    }

    public static class UnityConfig
    {
        public static void RegisterComponents()
        {
            var container = new UnityContainer();

            MyWeb.IOC.Common.RegisterTypes.Register(container, "WebIOCService");//注册类的映射关系

            DependencyResolver.SetResolver(new MyWeb.IOC.Common.UnityDependencyResolver(container));//IOC注入
        }

    }
}